package mvp.cklm.testtask.converters;

import com.mongodb.DBObject;
import mvp.cklm.testtask.model.AddressModel;

/**
 * Created with IntelliJ IDEA.
 * User: WORKSPOT2
 * Date: 24.02.14
 * Time: 21:18
 * To change this template use File | Settings | File Templates.
 */
public interface IMongoDBConverter<T> {

    DBObject convertToDBObject(T model);

    T convertFromDBObject(DBObject dbObject);
}
